<template>
  <div>
    <Tabs 
      :linklist="linklist"
      :tableData="tableData"
      :btnList="btnList"
      :titleList="titleList"
    />
    <!-- <div>{{ContranchtCode}}</div> -->
  </div>
</template>

<script>
import Tabs from '../../../components/List.vue'
export default {
  name:'Contranct',
    data(){
      return{
        linklist: [
        { id: 0, name: "合同编号", isRouter: true, url: "/agreement/contractNumber" },
        { id: 1, name: "订单编号", isRouter: false },
        { id: 2, name: "起始日期", isRouter: false },
        { id: 3, name: "到期日期", isRouter: false },
        { id: 4, name: "合同分类", isRouter: false },
        { id: 5, name: "总金额", isRouter: false },
        { id: 6, name: "已收款", isRouter: false },
        { id: 7, name: "欠款", isRouter: false },
        { id: 8, name: "提供发票", isRouter: false },
        { id: 9, name: "是否含税", isRouter: false },
        { id: 10, name: "合同状态", isRouter: true, url: "/agreement/contranctStatus?id=8" },
        { id: 11, name: "审核人员", isRouter: false },
        { id: 12, name: "审核时间", isRouter: false },
        { id: 13, name: "备注", isRouter: false },
        { id: 14, name: "业务员", isRouter: false },
        { id: 15, name: "录入时间", isRouter: false },
        { id: 16, name: "附件", isRouter: true, url: "/agreement/appendix" },
      ],
        tableData: [],
        btnList: [
        { id: 1, name: "续费", type: "合同" },
        { id: 2, name: "到款", type: "合同" },
        { id: 3, name: "修改", type: "合同" },
        { id: 4, name: "删除", type: "合同" },
        ],
        titleList: [
        "contract_no", //合同编号
        "order_id", //订单编号
        "contract_startday", //起始日期
        "contract_endday", //到期日期
        "contract_part", //合同分类
        "contract_summoney", //总金额
        "contract_receivemoney", //已收款
        "contract_debtmoney", //欠款
        "contract_tax", //提供发票
        "contract_invoice", //是否含税
        "contract_status_no", //合同状态
        "status_id", //审核人员
        "status_startday", //审核时间
        "contract_comment", //备注
        "employee_id", //业务员
        "contract_enterday", //录入时间
        "appendix", //附件
        ],
      }
},

    components:{
      Tabs
    },

  mounted(){
    console.log(this.$route.query.info);
    this.tableData.push(this.$route.query.info)
  }
    
}
</script>

<style>

</style>